PXC Documentation

PXC Home

Line

pre 1.18



Node Data

Display name

Line

Internal name

Node_PB_Draw_Line

Inheritances

Node_Processor
Node_PB_Draw
Node_PB_Draw_Line

Inputs

Node_PB_Draw

pbbox

Base Pbbox

pbbox

Pbbox

float

Pbbox Left

float

Pbbox Top

float

Pbbox Right

float

Pbbox Bottom

float

Pbbox Width

float

Pbbox Height

Dynamic Inputs

enum

Effect Type

color

Color

slider

Intensity

enum

Pattern

color

Color

slider

Intensity

vec2

Scale

vec2

Position

bool

Map Bbox

int

Thickness

enum

Position

enum

Corner

int

Radius

int

Widths

color

Color Left

color

Color Right

color

Color Top

color

Color Bottom

float

Modify

bool

Subtract

rotation

Direction

float

Shines

slider

Progress

float

Slope

enum

Axis

float

Seed

Node_PB_Draw_Line

enum

Type

int

Thickness

bool

Overflow

toggle

Corner

Outputs

Node_PB_Draw

pbbox

Pbbox

surface

Surface Out

Line node is used to draw a line (or lines) on a surface.



Path Data


Line node takes path data to define the path to draw. Without it, it will draw a single straight line across the middle of the surface with the Rotation value control the angle.

The path data can be provided through Path.




Resolution


When drawing a path, line node generate segment of straight lines and combine them together. The more segment it generated the more accurate the path will be. There're 2 types of segment generation controlled by the Fix Length property.


Fix amount


By default, Fix Length is set to false. This mean the amount of the segment is being controlled directly through the Segment property./p>

Fix length


When Fix Length is set to true, the segment length is being controlled instead. The Segment Length property will determine the maximum length of each segment in pixel.




Line Width


Line width can be controlled through the Width property. This width is a vector containing 2 values, the width of each segment will be random bewteen these 2 values. You can set it to the same value to fix the length.


1Px Mode


The 1Px Mode toggle will fix the line width to 1 pixel, and use a more pixel perfect algorithm to draw the lines.



Width Over Length


You can modulate the width of the line over it's length using the Width Over Length curve. This curve will be multiplied with the Width value to determine the final width.